@import '../../assets/base.css';

.skill-item {
	background-color: rgba(0 0 0/.1);
	margin-top: 10px;
	padding: 8px;
}
.skill-signature {
	column-gap: 12px;
	display: grid;
	grid-template-areas:
		"i n"
		"i t";
	grid-template-columns: 64px minmax(0, 100%);
}
.skill-item img {
	aspect-ratio: 1 / 1;
	background-color: #212121;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0 0 0/0.2);
	grid-area: i;
    height: auto;
	width: 64px;
}
.skill-name {
	font-size: larger;
	grid-area: n;
}

.skill-elem::before {
	content: '';
	display: inline-block;
	height: 1em;
	width: 1em;
}

.skill-tag {
	grid-area: t;
}
.skill-content {
	background-color: rgba(0 0 0/.1);
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0 0 0/.2);
    column-gap: 4px;
	display: grid;
    grid-template-columns: 3fr 1fr;
	margin-top: 6px;
}
.skill-content > div {
	padding: 0.4em;
}
.skill-desc {
	counter-reset: lvCounter;
}
.skill-def-break {
	color: #ff9000;
	font-weight: bold;
}
.skill-desc-lv {
	border-top: 1px solid;
	counter-increment: lvCounter;
}
.skill-desc-lv:first-child,
.skill-def-break + .skill-desc-lv:nth-child(2) {
	border-top: none;
}
.skill-desc-lv::before {
	content: 'Lv.' counter(lvCounter) '\ff1a';
	color: #f26c1c;
	font-weight: bold;
}
.skill-intro {
	margin-top: 0.5em;
	opacity: 0.75;
}
.skill-limit span {
	background-color: var(--vt-c-black-mute);
	color: var(--vt-c-text-dark-1);
	padding: 2px;
}
.skill-map dt {
	border-bottom: 2px solid gray;
	line-height: 1;
	margin: 4px 0;
}
.skill-map dd {
	margin-left: 0.5em;
}

@media (prefers-color-scheme: dark) {
	.skill-item {
		background-color: rgba(255 255 255/0.1);
	}
	.skill-limit span {
		background-color: var(--vt-c-white-mute);
		color: var(--vt-c-text-light-1);
	}
}
